Skip to content

Add warning for header_register_callback usage - #5760

Merged
jordikroon merged 4 commits into
php:masterfrom
beryllium:patch-3
Aug 14, 2026
Merged

Add warning for header_register_callback usage#5760
jordikroon merged 4 commits into
php:masterfrom
beryllium:patch-3

Conversation

@beryllium

Copy link
Copy Markdown
Contributor

Added a warning about callback de-registration in header_register_callback.

Added a warning about callback de-registration in header_register_callback.
<para>
Callbacks are not stacked. Subsequent calls to <function>header_register_callback</function>
will silently de-register any existing <parameter>callback</parameter>, regardless of where
it was set. Be aware that dependencies could overwrite your callback.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“your callback” should simply become “the callback” as we don’t allow personalization according to the style guidelines. I am also thinking whether could is the correct choice. Shouldn’t we should may instead as it’s conditionally.

And by docbook CS, the outer should become simpara.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've applied these suggestions. Thanks!

@beryllium
beryllium requested a review from jordikroon August 13, 2026 23:02
@jordikroon
jordikroon merged commit abdc238 into php:master Aug 14, 2026
2 checks passed
@jordikroon

Copy link
Copy Markdown
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants